//引入mongoose
var mongoose = require('mongoose');

//定义数据库模式
var Schema = mongoose.Schema;
//创建用户模型
var userModel = new Schema({
    username: String,
    md5: String,
    time: String,
    token: String
});

module.exports = mongoose.model("users", userModel);